package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 店铺域名
 * 
 * @author yerly
 *
 */
@Entity
public class ShopDomain {
	@Id
	private Long id;
	@ManyToOne
	private Shop shop;
	private String domain;
	private Boolean dft;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public Boolean getDft() {
		return dft;
	}

	public void setDft(Boolean dft) {
		this.dft = dft;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "ShopDomain [id=" + id + ", shop=" + shop + ", domain=" + domain
				+ ", dft=" + dft + ", disabled=" + disabled + "]";
	}

}
